package com.wind.taobao.api.trade.shipping.rest
{
	import com.wind.taobao.api.trade.shipping.convert.AreaConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.areas.get  Response
	 * @author fxy
	 *
	 */
	public class AreasGetResponse extends TaobaoResponse
	{
		public var areas:ArrayCollection;

		public function AreasGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initAreas();
		}

		private function initAreas():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("areas"))
					areas=AreaConvert.convertAreas(body["rsp"]["areas"]);
			}

		}

	}
}